package threads.ejemplo1;


public class Principal {

	public static void main(String[] args) {
		JcgRunnable jcg = new JcgRunnable();
		Jcg2Runnable jcg2 = new Jcg2Runnable();
		Thread t = new Thread(jcg);
		t.setName("Thread 1");
		Thread t2 = new Thread(jcg2);
		t.setName("Thread 2");
		t.start();
		t2.start();
	}

}
